package com.wenda.homeschooedu.biz;

import java.util.HashMap;
import java.util.List;

import com.google.gson.Gson;
import com.wenda.homeschooedu.daoimpl.DutyService;

public class DutyManager {
	DutyService dutyService;

	public DutyManager() {
		dutyService = new DutyService();
	}

	public List<HashMap<Integer, String>> getDutyOrderList(int class_id,
			int year, int term, int weekNumber) {
		return dutyService.getDutyListString(class_id, year, term, weekNumber);
	}

	public String getDutyOrderListByJson(int class_id, int year, int term,
			int weekNumber) {
		Gson gson = new Gson();
		return gson.toJson(getDutyOrderList(class_id, year, term, weekNumber));

	}

}
